package com.example.chapter04;

/**
 * 10.移位操作符
 * @date 2024/4/29
 */
public class URShift {
    public static void main(String[] args) {
        int i = -1;
        System.out.println(Integer.toBinaryString(i));
        i >>>= 10;
        System.out.println(Integer.toBinaryString(i));
        long I = -1;
        System.out.println(Long.toBinaryString(I));
        I >>>= 10;
        System.out.println(Long.toBinaryString(I));
        short s = -1;
        System.out.println(Integer.toBinaryString(s));
        s >>>= 10;
        System.out.println(Integer.toBinaryString(s));
        byte b = -1;
        System.out.println(Integer.toBinaryString(b));
        b >>>= 10;
        System.out.println(Integer.toBinaryString(b));
        b = -1;
        System.out.println(Integer.toBinaryString(b));
        System. out. println (Integer.toBinaryString(b>>10));
    }
}
